
@echo off

call :getdatetime
for /f %%x in ('time /t ^| replacew /- /- ":" "-"') do set _TIME_ESC_=%%x
set timelogfile=amutestlog.time.%_DATE_%_%_TIME_ESC_%.txt

set argument=base
call :amutest

set argument=std
call :amutest

set argument=cacheManager
call :amutest

set argument=cacheManager2
call :amutest

set argument=stdperf
call :amutest

set argument=remotecallperf
call :amutest

set argument=valueIntervalPerf
call :amutest

set argument=freclust
call :amutest

set argument=freclustperf
call :amutest

set argument=duallock
call :amutest

goto :eof

REM set argument=all
REM call :amutest

:amutest --------------------------------------------------------------------
call :getdatetime
echo start %argument% @ %_DATE_% %_TIME_% >> %timelogfile%
.\amutest\amutest\bin\debug\amutest.exe %argument% 1> amutestlog.%argument%.debug.txt 2>&1
call :getdatetime
echo end debug %argument% @ %_DATE_% %_TIME_% >> %timelogfile%
.\amutest\amutest\bin\release\amutest.exe %argument% 1> amutestlog.%argument%.release.txt 2>&1
call :getdatetime
echo end release %argument% @ %_DATE_% %_TIME_% >> %timelogfile%

goto:eof

:getdatetime ----------------------------------------------------------------
for /f %%x in ('date /t') do ( set _DATE_=%%x)
for /f %%x in ('time /t') do ( set _TIME_=%%x)

goto:eof

